<?php
/**
 * 
 */
?>
<div class="tianggelogincont">
    <div class="tianggeloginheadercont"></div>
	<?php if (!isset($disable_login)): ?>
	<div class="tianggeaddedlogin">
        ONLY AUTHORIZED USERS ARE ALLOWED TO ACCESS THIS SYSTEM<br /><br />
        The programs and data stored in this system are licensed, private property of Globe Telecom. They are made available only to authorized users. All login attempts and access are recorded and verified.
        <br /><br />If you are not an authorized user, DO NOT ATTEMPT TO LOGIN.
    </div>
    <?php endif; ?>
    
    <form id="frm_login" method="post" action="<?php  echo site_url($this->router->fetch_class().'/login'); ?>">
        <?php if (isset($msg)): ?>
        <div class="marg15top error-text" id="error-msg"><?php echo $msg;?></div>
        <?php endif; ?>
        <?php if (isset($info)): ?>
        <div class="marg15top"><?php echo $info;?></div>
        <?php endif; ?>
        
        <?php if (isset($disable_login) && $disable_login): ?>
        <div class="margtopyv30">
            <input href="<?php echo site_url($this->router->fetch_class().'/resetPassword'); ?>" class="buttonBlue" type="button" name="reset" value="Reset your password" /><br /><br />
            <input href="<?php echo site_url($this->router->fetch_class().'/login'); ?>" class="buttonBlue" type="button" name="submit" value="Login with another account" />
        </div>
        <?php else: ?>
        <div class="margtopyv30 height41tiangge">
            <input type="name" id="username" name="txt_email" class="tianggelogintextinput input-placehorder<?php echo isset($msg)?' error':'';?>" ftype="text" placeholder="Enter username" autocomplete="off">
        </div>
        <div class="error-text" id="txt_email" style="display:none;">Username is a required field.</div>        
        <div class="marg15top">
            <input type="password" name="txt_pass" class="tianggelogintextinput input-placehorder<?php echo isset($msg)?' error':'';?>" ftype="password" id="password"  placeholder="Enter password" autocomplete="off" />
        </div>
        <div class="error-text" id="txt_pass" style="display:none;">Password is a required field.</div>
        <div class="margtopyv30">
            <input class="buttonBlue" type="submit" name="submit" value="Login" />
        </div>
        
        <div class="margtopyv30">
            <a href="<?php  echo site_url($this->router->fetch_class().'/resetPassword'); ?>">Forgot password?</a><br />
<a href="<?php  echo site_url($this->router->fetch_class().'/resetPassword'); ?>">Change Password</a> 
        </div>
        
        <?php endif; ?>
    </form>
    <div class="clear"></div>
</div>


